package com.factoryMethod.factoryTwo;

import com.oop.syntheticMultiplexing.White;

/**
 * @author Vhong
 * @version 1.0
 */
interface IFactory {
    public ICar createCar();
}
class Factory implements IFactory{
    public ICar createCar(){
        Engine engine = new Engine();
        Underpan underpan = new Underpan();
        Wheel wheel = new Wheel();

        ICar car = new Car(engine,wheel,underpan);
        return car;
    }

}
